package com.industrial.operation.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.industrial.operation.mapper.OperationMetricMapper;
import com.industrial.operation.domain.OperationMetric;
import com.industrial.operation.service.IOperationMetricService;

/**
 * 重点运行企业（按市分）Service业务层处理
 * 
 * @author Zhou_S
 * @date 2024-01-18
 */
@Service
public class OperationMetricServiceImpl implements IOperationMetricService 
{
    @Autowired
    private OperationMetricMapper operationMetricMapper;

    /**
     * 查询重点运行企业（按市分）
     * 
     * @param baseId 重点运行企业（按市分）主键
     * @return 重点运行企业（按市分）
     */
    @Override
    public OperationMetric selectOperationMetricByBaseId(String baseId)
    {
        return operationMetricMapper.selectOperationMetricByBaseId(baseId);
    }

    /**
     * 查询重点运行企业（按市分）列表
     * 
     * @param operationMetric 重点运行企业（按市分）
     * @return 重点运行企业（按市分）
     */
    @Override
    public List<OperationMetric> selectOperationMetricList(OperationMetric operationMetric)
    {
        return operationMetricMapper.selectOperationMetricList(operationMetric);
    }

    /**
     * 新增重点运行企业（按市分）
     * 
     * @param operationMetric 重点运行企业（按市分）
     * @return 结果
     */
    @Override
    public int insertOperationMetric(OperationMetric operationMetric)
    {
        return operationMetricMapper.insertOperationMetric(operationMetric);
    }

    /**
     * 修改重点运行企业（按市分）
     * 
     * @param operationMetric 重点运行企业（按市分）
     * @return 结果
     */
    @Override
    public int updateOperationMetric(OperationMetric operationMetric)
    {
        return operationMetricMapper.updateOperationMetric(operationMetric);
    }

    /**
     * 批量删除重点运行企业（按市分）
     * 
     * @param baseIds 需要删除的重点运行企业（按市分）主键
     * @return 结果
     */
    @Override
    public int deleteOperationMetricByBaseIds(String[] baseIds)
    {
        return operationMetricMapper.deleteOperationMetricByBaseIds(baseIds);
    }

    /**
     * 删除重点运行企业（按市分）信息
     * 
     * @param baseId 重点运行企业（按市分）主键
     * @return 结果
     */
    @Override
    public int deleteOperationMetricByBaseId(String baseId)
    {
        return operationMetricMapper.deleteOperationMetricByBaseId(baseId);
    }
}
